/*******************************************************************************
 * Copyright (c) 2012, G. Weirich and Elexis
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    G. Weirich - initial implementation
 *******************************************************************************/

package ch.elexis.easy.core;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;

public class LogMessage extends Status {
	
	public LogMessage(String msg){
		super(IStatus.WARNING,Hub.ID,msg);
	}
	
	public LogMessage(int severity, String msg){
		super(severity,Hub.ID,msg);
	}
	
	public static void log(String msg){
		Hub.theInstance.getLog().log(new LogMessage(msg));
	}
}
